#include <stdio.h>

int main(void)
{
    printf("\n");
    const int FREEZING = 0;
    float temperature;
    int cold_days = 0;
    int all_days = 0;
    printf("输入每日低温列表。\n");
    printf("使用“摄氏度”，然后输入q退出。\n");
    while (scanf("%f", &temperature) == 1)
    {
        all_days++;
        if (temperature < FREEZING)
        {
            cold_days++;
        }
    }
    if (all_days != 0)
    {
        printf("%d 总天数： %.1f%% 低于冰点。\n",
               all_days, 100.0 * (float)cold_days / all_days);
    }
    if (all_days == 0)
    {
        printf("No data entered!\n");
    }
    return 0;
}